//
//  Enemy.h
//  CompGraf2
//
//  Created by Juan Niosi on 27/10/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CharacterController.h"

@class World;

typedef enum EnemyState
{
    ENEMY_GUARDING,
    ENEMY_CHASING,
    ENEMY_ATTACKING
} ENEMY_STATE;

@interface Enemy : CharacterController
{
    MapNode* startingPos;
    float viewRange;
    ENEMY_STATE enemyState;
    World *world;
    
    MapNode *charCurrObj;
}

- (id)init:(MD2Model *)md2 withWalkSpeed:(GLfloat)walk withTurnSpeed:(GLfloat)turn startsAt:(MapNode *)origin views:(float)range;

- (void)updateGuarding:(float)deltaTime;
- (void)updateChasing:(float)deltaTime;

- (void)setEnemyState:(ENEMY_STATE)newState;

- (void)pathToCharacter;
@end
